<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>
	<script>
		//复制对象
		let person1 = {name: "Amy", age: 15}
		let someone = {...person1};
		console.log(someone);

		//合并对象
		let person2 = {gender: '男', address: '北京'};
		let person = {...person1, ...person2};
		//{name: 'Amy', age: 15, gender: '男', address: '北京'}
		console.log(person);


	</script>
</body>
</html>